<?php


namespace app\index\model;


use think\Model;

class Country extends Model
{
    public static function getCountryList(): array
    {
        $CountryClass=new self();
        $country_list=$CountryClass->where('del_flag',0)->field('id,country_name value,phone_code')->select()->toArray();
        $country=[];
        foreach ($country_list as $value){
            $country[$value['id']]=$value;
        }
        return $country;
    }
}